package com.zxq.ai.domain.reward;

import com.zxq.ai.domain.user.User;
import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * 现金奖励
 */
@NoArgsConstructor
@AllArgsConstructor
public class CashReward extends Reward {

    private long amount;

    @Override
    public void grant(List<User> participants) {
        for (User user : participants) {
            System.out.println("Granting $" + amount + " to user " + user.getUserName());
            // 实际发放现金奖励逻辑
        }
    }

}
